<script setup lang="ts">
import {computed} from "vue";

const map = ['success', 'warning', 'error', 'info', ''];
const type = computed(() => {
  const idx = Math.floor(Math.random() * 1000) % map.length;
  return map[idx];
})
const item = defineProps(['name']);
import {NTag, NSpace} from 'naive-ui';

</script>

<template>
<!--  <n-tag :type="type">{{ item.name }}</n-tag>-->
</template>

<style scoped>

</style>